package com.lingchen.entity;

import java.io.Serializable;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2017/4/24
 * Function  用户
 */
public class User implements Serializable {

    /**
     * 用户
     */
    private long userName;
    /**
     * 密码
     */
    private String password;

    /**
     * 权力 越小越大
     */
    private int authority=1;

    public long getUserName() {
        return userName;
    }

    public void setUsername(long username) {
        this.userName = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", authority=" + authority +
                '}';
    }
}
